package com.jiaai.cloud.wx.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-08-22
 */
@TableName("t_wxuser")
public class TWxuser extends Model<TWxuser> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
	@TableId(value="userid", type= IdType.AUTO)
	private Integer userid;
    /**
     * 微信openID
     */
	private String openID;
    /**
     * 昵称
     */
	private String nickname;
    /**
     * 性别 0：未知、1：男、2：女
     */
	private Integer sex;
    /**
     * 注册时间
     */
    @JSONField(format = "yyyy-MM-dd")
	private Date regdate;
    /**
     * 头像
     */
	private String avater;


	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getOpenID() {
		return openID;
	}

	public void setOpenID(String openID) {
		this.openID = openID;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Date getRegdate() {
		return regdate;
	}

	public void setRegdate(Date regdate) {
		this.regdate = regdate;
	}

	public String getAvater() {
		return avater;
	}

	public void setAvater(String avater) {
		this.avater = avater;
	}

	@Override
	protected Serializable pkVal() {
		return this.userid;
	}

}
